# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  def show_progress_indicator
    content_tag "div", "Working... " + image_tag("progress_bar1.gif"),
              :id => "ajax_busy", :style => "display:none;"
  end

  def user_logged_in
    if logged_in?
      current_user.login << "</b> | " << (link_to 'Выйти', logout_url)
    else
      "anonymous (*)</b> | " << link_to('Войти', login_url, :class => 'lbOn')

    end
  end
end
